package com.zt.ztyh.exception;

import com.zt.ztyh.vo.common.ResultCodeEnum;
import lombok.Data;

//自定义异常
@Data
public class ZhentaoException extends RuntimeException {

    private  int code;
    private String message;


    public ZhentaoException(ResultCodeEnum resultCodeEnum) {
        this.code = resultCodeEnum.getCode();
        this.message = resultCodeEnum.getMessage();
    }


}
